package com.slz3.business.module.wmsManagement.wmsTraysManage.domain;

import com.slz3.business.module.goodsManagement.gooTypeLevel1.domain.GooTypeLevel1;
import com.slz3.business.module.goodsManagement.gooTypeLevel2.domain.GooTypeLevel2;
import com.slz3.business.module.wmsManagement.wmsWarehouseManage.domain.WmsWarehouseManage;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

@Entity
@Table(schema = "wms_management", name = "wms_trays_manage")
@Data
@EqualsAndHashCode(callSuper = true)
public class WmsTraysManage extends WmsTraysManageEntity implements Serializable {

    private static final long serialVersionUID = 3928173855627287110L;
    @Transient
//    @NotNull(message = "ser1 必须非空!", groups = {Add.class, Modify.class})
//    @Length(min = 1, max = 255, message = "ser1 必须非空!", groups = {Add.class, Modify.class})
    private String serValid;

    @Transient
//    @NotNull(message = "ser2 必须非空!", groups = {Add.class, Modify.class})
//    @Length(min = 1, max = 255, message = "ser2 必须非空!", groups = {Add.class, Modify.class})
    private String serValid2;

    /**
     * 仓库
     */
    @Transient
    private WmsWarehouseManage wmsWarehouse;

    /**
     * 库区
     */
    @Transient
    private WmsWarehouseManage wmsWareArea;

    /**
     * 商品一级类别
     */
    @Transient
    private GooTypeLevel1 gooTypeLevel1;

    /**
     * 商品二级类别
     */
    @Transient
    private GooTypeLevel2 gooTypeLevel2;

}
